package bhoost.jsi;

public class XmppEvent extends Event {
//  public int messageType;
  public String sender;
  public String body;
  public String receiver;
  public String chatroom;
  public String type;
  public String url;
  public long time;

  public XmppEvent() {
    this.eventType = Event.Type.xmpp;
  }

  public String getSender() {
    return sender;
  }

  public String getBody() {
    return body;
  }

  public long getTime() {
    return time;
  }

  public String getChatRoom() {
    return chatroom;
  }

  public String getMessageType() {
    return type;
  }

  public void copyFrom(XmppEvent event) {
    body = event.body;
    chatroom = event.chatroom;
    eventCode = event.eventCode;
    type = event.type;
    receiver = event.receiver;
    sender = event.sender;
    time = event.time;
    url = event.url;
  }
}
